package com.tarena.security.admin.persistis.repository;

import com.tarena.security.admin.dao.MicroServiceMapper;
import com.tarena.security.admin.entity.db.MicroService;
import com.tarena.security.admin.entity.query.MicroServiceQuery;
import com.tarena.security.admin.persists.repository.MicroServiceRepository;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * micro_service Mapper 接口
 * </p>
 *
 * @author Ly
 * @since 2023-04-10
 */
@Repository
public class MicroServiceRepositoryImpl implements MicroServiceRepository {
    @Resource
    private MicroServiceMapper mapper;

    @Override public void deleteById(Integer[] id) {
        mapper.deleteById(id);
    }

    @Override public MicroService getMicroServiceById(Integer id) {
        return mapper.getMicroServiceById(id);
    }

    @Override public int getMicroServiceCountByName(String name) {
        return mapper.getMicroServiceCountByName(name);
    }

    @Override public int updateByID(MicroService service) {
        return mapper.updateByID(service);
    }

    @Override public int addNewMicroService(MicroService service) {
        return mapper.addNewMicroService(service);
    }

    @Override public List<MicroService> getMicroServiceList(MicroServiceQuery query) {
        return mapper.getMicroServiceList(query);
    }
}
